<?php 
    include_custom("/views/admin/header.php");
?>

<div id="main_container">

	<div class="header">
      <?php 
    include_custom("/views/admin/menu_header.php");
    ?>      
    </div>
    
    <div class="main_content">
    
            <?php 
    include_custom("/views/admin/menu.php");
?>        
                    
                    
                    
                    
    <div class="center_content">  

    
    <div class="right_content">            
        
    <h2>Chỉnh sửa thông tin trường</h2> 
                    
                    
<div class="block_form">
<form action="index.php?rt=admin/post_edit_truong" method="post">
  <table width="100%">
    <colgroup width="15%">
    </colgroup>
    <colgroup width="85%">
    </colgroup>
     <tr>
      <td>Mã số trường:</td>
      <td><?php echo $truong->id; ?></td>
    </tr>
    <tr>
      <td>Tên trường:</td>
      <td><input name="name" type="text" value="<?php echo $truong->name; ?>"></td>
    </tr>
    <tr>
      <td>Thứ tự:</td>
      <td><input name="order" type="text" value="<?php echo $truong->order; ?>"></td>
    </tr>
    <tr>
      <td>Status:</td>
      <td>
            <select name="status">
                <option  value="1"  <?php if($truong->status != 0) echo "selected='selected'"; ?>>Hoạt động</option>
                <option  value="0"  <?php if($truong->status == 0) echo "selected='selected'"; ?>>Không hoạt động</option>
            </select>
      </td>
    </tr>
    
	<tr>
      <td></td>
      <td><input type="submit" name="submit" value="Submit"></td>
    </tr>
  </table>
  <input  type="hidden" name="id" value="<?php echo $truong->id; ?>" />
  </form>
</div>

	 <a href="index.php?rt=admin/create_truong" class="bt_green"><span class="bt_green_lft"></span><strong>Xóa đường</strong><span class="bt_green_r"></span></a>
     <a href="index.php?rt=admin/delete_truongs" class="bt_red"><span class="bt_red_lft"></span><strong>Chỉnh sửa thông tin sđường</strong><span class="bt_red_r"></span></a> 

     </div><!-- end of right content-->
                                
  </div>   <!--end of center content -->               
                    
<?php 
    include_custom("/views/admin/footer.php");
?>